import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '@/views/HomeView.vue'
import WordAddView from '@/views/WordAddView.vue'
import WordView from '@/views/WordView.vue'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      component: HomeView,
    },
    {
      path: '/modifyWordbook/:id',
      component:WordAddView
    },
    {
      path: "/readWords/:id",
      component:WordView
    },
  ],
})

export default router
